<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>批量下载</title>
</head>
<body>
<p> <style type="text/css">
body,td {font-size:13px;}
</style> </p>

<h1 align="center">批量下载-订单信息</h1>
<table width="100%" cellpadding="1">
    <tbody>
        <tr>
            <td width="8%">购 货 人：</td>
            <td><?php echo (isset($orderInfo['delivery_first_name']) ? $orderInfo['delivery_first_name'] : null)  . '.' . (isset($orderInfo['delivery_last_name']) ? $orderInfo['delivery_last_name'] : null);?><!-- 购货人姓名 --></td>
            <td align="right">下单时间：</td>
            <td><?php echo date('Y-m-d H:i:s', $orderInfo['start_time'])?><!-- 下订单时间 --></td>
            <td align="right">支付方式：</td>
            <td><?php echo $orderInfo['payment_method_name']?><!-- 支付方式 --></td>
            <td align="right">订单编号：</td>
            <td><?php echo $orderInfo['order_sn']?><!-- 订单号 --></td>
        </tr>
        <tr>
            <td>付款时间：</td>
            <td><?php echo $orderInfo['payment_time'] ? date('Y-m-d H:i:s', $orderInfo['payment_time']) : '未付款';?></td>
            <!-- 付款时间 -->
            <td align="right">发货时间：</td>
            <td><?php echo $orderInfo['shipping_time'] ? date('Y-m-d H:i:s', $orderInfo['shipping_time']) : '未发货';?><!-- 发货时间 --></td>
            <td align="right">配送方式：</td>
            <td><?php echo $orderInfo['shipping_method_name']?><!-- 配送方式 --></td>
            <td align="right">发货单号：</td>
            <td><?php echo $orderInfo['shipping_no'] ? $orderInfo['shipping_no'] : '未发货';?> <!-- 发货单号 --></td>
        </tr>
	</tbody>
</table>
<table width="100%" cellpadding="1">
	<tbody>
        <!---->
        <tr>
            <td valign="top" width="10%">收货地址：</td>
            <td  width="40%"><strong>姓名：</strong><?php echo (isset($orderInfo['delivery_first_name']) ? $orderInfo['delivery_first_name'] : null)  . '.' . (isset($orderInfo['delivery_last_name']) ? $orderInfo['delivery_last_name'] : null);?>&nbsp;<br />
            <strong>地址：</strong><?php echo $orderInfo['delivery_address'] . (isset($orderInfo['delivery_address2']) ? $orderInfo['delivery_address2'] . ' ' : null) . (isset($orderInfo['delivery_address3']) ? $orderInfo['delivery_address3'] . ' ' : null);?><br />
            <strong>邮编：</strong><?php echo $orderInfo['delivery_postcode'];?>&nbsp; <strong>城市：</strong><?php echo $orderInfo['delivery_city'];?><br />
              		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		  			<strong>国家：</strong><?php echo $orderInfo['delivery_country'];?> 		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	      		 	    &nbsp;<strong>洲/省：</strong><?php echo $orderInfo['delivery_province'];?><br />
            <strong>电话：</strong><?php echo $orderInfo['delivery_phone'];?>&nbsp; <br />

            <p>&nbsp;</p>
            </td>
			        </tr>
        <!---->
    </tbody>
</table>
<!--  -->
<?php 
if (isset($orderInfo['productList']) && $orderInfo['productList']):
	foreach ($orderInfo['productList'] as $product):
?>
<div style="float: left; margin: 10px; width: 40%;">
<table width="100%" border="1" style="border-collapse: collapse; border-color: rgb(0, 0, 0);">
    <tbody>
        <tr align="center">
            <td bgcolor="#cccccc">商品图片<!-- 商品名称 --></td>
            <td bgcolor="#cccccc">商品名称<!-- 商品名称 --></td>
            <td bgcolor="#cccccc">数量<!-- 商品数量 --></td>
            <td bgcolor="#cccccc">货号<!-- 商品货号 --></td>
            <td bgcolor="#cccccc">属性<!-- 商品属性 --></td>
            <td bgcolor="#cccccc">成本价格</td>
        </tr>
        <tr>
            <td align="center"><img width="120" alt="" src="<?php echo getHost('').'/'.$product['small_img'];?>" /></td>
            <td>&nbsp;<?php echo $product['product_name'];?><!-- 商品名称 -->          </td>
            <td align="right"><?php echo $product['qty'];?>&nbsp;<!-- 商品数量 --></td>
            <td>&nbsp;<?php echo $product['product_sn'];?> <!-- 商品货号 --></td>
            <td><?php echo $product['attr'];?><!-- 商品属性 --></td>
            <td align="right"><?php echo $product['cost_price'];?>&nbsp;<!-- 成本价格 --></td>
        </tr>
    </tbody>
</table>
</div>
<?php 
	endforeach;
endif;
?>
</body>
</html>